﻿@{
    ViewBag.Title = "Specials";
}
@using Helper

<div class="head">
    <div class="isw-grid">
    </div>
    <h1>
       Specials</h1>
    <ul class="buttons">
        <li><a href="#" class="isw-settings"></a>
            <ul class="dd-list" style="display: none;">
               @if (Helper.SessionManagement.Value("pvalue").Contains("C"))
               {
                <li>
                    <a href="@Url.Action("AddOrUpdate", "ProductManagement")"><span class="isw-plus"></span>Add new</a>
                    <a id="search" href="#"><span class="isw-zoom"></span>Search</a>
                </li>
               }
            </ul>
        </li>
    </ul>
    <div class="clear">
    </div>
</div>
   @if (Helper.SessionManagement.Value("pvalue").Contains("R"))
   {
 @*<button class="btn btn-primary" id="search">tìm kiếm</button>*@
            @Html.Action("_Search", "ProductManagement")
<div class="block-fluid table-sorting">
    <div class="row-fluid listproduct">
        @Html.Action("_ShowAll", "ProductManagement")
    </div>
</div>
   }
   else { <span>Not permission</span> }

<script type="text/javascript">
    ///Document Ready jQuery
    $(document).ready(function () {

        reloadGridProduct();
        $(".formsearch").hide();
        $("#search").ShowSearchForm();
        $("#closesearchform").CloseSearchForm();
        $("#searchaction").Search();
    });
</script>
<script src="@Url.ContentArea("~/Content/javascript/Product.js")" type="text/javascript"></script>